package com.cjx.stars.common;

import lombok.Data;

/**
 * @author cjx
 * @Description 返回类型
 * @date 2024/2/28 21:02
 **/
@Data
public class Response<T> {

    private int code;
    private String message;
    private T data;

    public Response(int code, String message, T data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public Response(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public Response(int code) {
        this.code = code;
    }

    public Response() {
    }
}
